<template>
	<view class="myModal">
		<u-modal :show="show" title=" " width="600rpx" :showConfirmButton="false" closeOnClickOverlay
			@close="closeModal">
			<view class="myModalMain">
				<view class="myModalMain_top">
					<image src="https://www.18788898240.com/uploads/attach/2025/02/20250213/8d2d06bd5cb3f0bf158c6a675acf2e89.jpg" mode=""></image>
				</view>
				<view class="myModalMain_bottom">
					<view class="myModalMain_bottom_btn" @click="goCall">
						<view class="myModalMain_bottom_btn_left">
							点击立即咨询
						</view>
						<view class="myModalMain_bottom_btn_right">
							<image src="/static/images/call.png" mode=""></image>
						</view>
					</view>
				</view>
			</view>
		</u-modal>
	</view>
</template>

<script>
	import {
		mapGetters
	} from "vuex";
	export default {
		name: "myModal",
		data() {
			return {

			};
		},
		computed: {
			...mapGetters(["show"]),
		},
		methods: {
			closeModal() {
				this.$store.commit('modal/setShow', false)
			},
			goCall(){
				uni.makePhoneCall({
					phoneNumber:'18788898240'
				})
			}
		},
		mounted() {
			console.log(this.show);
		}
	}
</script>

<style scoped lang="scss">
	.myModal {

		::v-deep .u-modal__content {
			padding: 0 !important;
		}

		.myModalMain {
			.myModalMain_top {
				width: 600rpx;
				height: 689rpx;

				image {
					width: 100%;
					height: 100%;
				}
			}
			.myModalMain_bottom{
				padding: 10rpx 20rpx;
				.myModalMain_bottom_btn{
					display: flex;
					align-items: center;
					justify-content: center;
					column-gap: 20rpx;
					padding: 20rpx;
					border: 1rpx solid #eee;
					border-radius: 10rpx;
					background: linear-gradient(to right, orange 0%, red 100%);
					.myModalMain_bottom_btn_left{
						font-size: 30rpx;
						color: #fff;
						font-weight: 700;
						line-height: 30rpx;
						// background-clip: text;
						// background-image: linear-gradient(to right, orange 0%, red 100%);
					}
					.myModalMain_bottom_btn_right{
						width: 40rpx;
						height: 40rpx;
						image{
							width: 100%;
							height: 100%;
						}
					}
				}
			}
		}
	}
</style>